home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 16
/
AMIGAplus Sonderheft 16 (1998)(ICP)(DE)[!].iso
/
pd
/
anwendungen
/
rtgmaster_dev
/
demos
/
mandel
/
mandelppc.doc
< prev
next >
Wrap
Text File
|
1998-06-29
|
2KB
|
67 lines
To install vbcc-WarpOS and compile the PPC Version:
- set up the following directory structure:
vbcc (Dir) <---- assign vbcc: to this directory !!!
machines (Dir)
amigawos (Dir)
include (Dir) <---- assign vincludewos: to this directory !!!
lib (Dir) <---- assign vlibwos: to this directory
- copy standard OS Includes (from SAS/C or StormC or GNU C or ...) to
vincludewos:
- now depack the vbcc.lha to vbcc:, in the process overwriting some
of the standard includes
- install rtgmsater includes (the rtgm.lib belongs to vlibwos:). There
probably are already rtgmaster includes coming with your vbcc-WarpOS,
but the ones from this archive rtgmaster_dev.lha are later versions,
probably. So overwrite the old ones.
- i recommend adding -+ to the vbcc:warpos and changing the pasm settings
with an additional -O65536 (when big switch-case-loops are coming, this
is good..), so that the file now looks like:
-no-preprocessor
-poweropen
-sc
-+
-no-multiple-ccs
-use-lmw
-peephole
-cc=vbccppc -quiet %s -o= %s %s -O=%ld
-ccv=vbccppc %s -o= %s %s -O=%ld
-pp=vcpp -Ivincludewos: -D__STDC__=1 -D__PPC__=1 %s %s %s
-ppv=vcpp -Ivincludewos: -D__STDC__=1 -D__PPC__=1 %s %s %s
-as=pasm -F2 %s -O65536 -o %s
-asv=pasm -F2 %s -O65536 -o %s
-rm=delete quiet %s
-rmv=delete %s
-ld=vlink -s -x -nostdlib -Lvlibwos: vlibwos:warpup.o %s %s -lvc vlibwos:x.o -o %s
-l2=vlink -s -x %s %s -o %s
-ldv=vlink -s -x -M -nostdlib -Lvlibwos: vlibwos:warpup.o %s %s -lvc vlibwos:x.o -o %s
-l2v=vlink -s -x -M %s %s -o %s
-ul=-l%s
-cf=-F%s
-ml=500
- to compile the mandelppc:
vc +warpos -amiga-align -lm -lamiga -lrtgm mandelppc.c
- now you can start your first self-compiled PPC-program. Compare it with the
68k version. PPC is FAST !!! :) (okay, the 68k version is not best optimized,
but even if the WriteRtgPixel are exchanged for CopyRtgBlit, there is still
a HUGE speed-difference).
If the result of your compile crashes:
- You might have an old version of vbcc-WarpOS. One of the first versions did
not handle functions with many register-parameters (PPCCopyRtgBlit) correct.
- If you use Doublebuffering, be sure to have rtg_Buffers,2 present. The PPC
does not like, if you access memory not owned by it.